package com.springboottest.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zzuli_huahua
 * @version 1.0
 * @date 2022/8/8 18:09
 */
@RestController
public class myHello {

    int a = 0;

    // http://localhost:8081/hello
    @GetMapping("/hello")
    public String hello(){
        a++;
        return "你好啊。。。。"+a;
    }
}
